package com.ly.heart.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 礼品基础信息对象 erp_gift_info
 *
 * @author cxl
 * @date 2024-06-13
 */
@TableName ("erp_gift_info")
@ApiModel (value = "礼品基础信息", description = "礼品基础信息")
@Data
public class GiftEntity{

        /** 主键id */
        @TableId (type = IdType.INPUT)
        private String id;

        /** 礼品名称 */
        @ApiModelProperty ("礼品名称")
        @TableField ("name")
        @Excel (name = "礼品名称")
        private String name;

        /** 库存数量 */
        @ApiModelProperty ("库存数量")
        @TableField ("inventory")
        @Excel (name = "库存数量")
        private Integer inventory;

        /** 创建人 */
        @ApiModelProperty ("创建人")
        @TableField ("user_id")
        @Excel (name = "创建人")
        private String userId;

        @ApiModelProperty ("创建时间")
        @TableField (value = "create_time")
        @JsonFormat (pattern = "yyyy-MM-dd HH:mm:ss")
        private Date createTime;

        /** 更新时间 */
        @ApiModelProperty ("更新时间")
        @TableField ("change_time")
        @JsonFormat (pattern = "yyyy-MM-dd HH:mm:ss")
        private Date changeTime;


        @ApiModelProperty ("逻辑删除")
        @TableField ("is_used")
        @Excel (name = "逻辑删除")
        private Integer isUsed;


}
